<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script language="javascript">
<!--
	var inmonth = prompt("输入当前月份");
	var month = new Array(null,31,28,31,30,31,30,31,31,30,31,30,31);
	inmonth = parseInt(inmonth);
	if (inmonth<=11 && inmonth>=1){
		document.write("下个月的天数为：",month[inmonth+1]);
	}
	else if(inmonth==12){
		document.write("下个月的天数为：",month[1])
	}
	else{
		document.write("请输入正确的月份！");
	}
-->
</script>
</head>

<body>
</body>
</html>
